package com.peoit.honeycomb.application;

import com.peoit.honeycomb.domain.repository.EntityRepository;
import com.peoit.honeycomb.dto.BannerDto;
import com.peoit.honeycomb.dto.BannerPageDto;

import java.util.List;

/**
 * 图片轮播
 * Created by zhouqiu on 2015/10/23.
 */
public interface BannerApplication extends EntityRepository {
    /**
     * 图片轮播查询分页
     * @param bannerPageDto
     * @return
     */
    public List<BannerDto> findByWherePage(BannerPageDto bannerPageDto);

    /**
     * 查询图片轮播条数
     *
     * @param dto
     * @return
     */
    public Long findPersonCount(BannerPageDto dto);

    /**
     * 新增图片轮播
     * @param dto
     * @return
     */
    public boolean addBanner(BannerDto dto);


    /**
     * 删除图片轮播
     * @param clas
     * @param id
     * @return
     */
    public boolean deleteBy(Class clas,String id);

    public List<BannerDto> findAllBy(String city);
}
